home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
utils
/
ffind230.zip
/
DELTRASH.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-01-10
|
1KB
|
24 lines
@echo off
if "%tmp%"=="" if "%temp%"=="" echo Please set 'tmp' environment variable (this can't be done from NC&clones!)
if "%tmp%"=="" if "%temp%"=="" goto end
if "%tmp%"=="" if not "%temp%"=="" set tmp=%temp%
set f=%tmp%\notrash!.bat
del %f% >NUL
call mtrash.bat rem ------------------------ Temporary files, safe to delete
ffind *:*.$$$ *.swp *.tmp [%comspec% /c mtrash.bat del %%FULLPATH]
call mtrash.bat rem ------------------------ Backup files, sometimes usefull
ffind *:*.bak *.*~* [%comspec% /c mtrash.bat del %%FULLPATH]
call mtrash.bat rem ------------------------ List, map files from compilers, think before deleting
ffind *:*.lst *.obj *.map [%comspec% /c mtrash.bat del %%FULLPATH]
call mtrash.bat rem ------------------------ User specified files (if any)
if "%1"=="" goto :cont
ffind *:%1 %2 %3 %4 %5 %6 %7 %8 %9 [%comspec% /c mtrash.bat del %%FULLPATH]
type %f% | find "\do\not\delete\here" /v > %f%
:cont
echo Do you have your favourite editor named ed? (^C if not)
call ed %f%
echo Do you *really* want to delete that files (^C if not)
pause
call %f%
:end